package dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import  dao.IDao;
import  dao.inter.IProductExampleDao;
import  entity.ProductExample;

@Repository
public class ProductExampleDaoImpl  implements IProductExampleDao{
	@Autowired
	private IDao<ProductExample> idao;

	@Override
	public ProductExample save(ProductExample obj) {
		return idao.save(obj);
	}

	@Override
	public boolean update(ProductExample obj) {
		return idao.update(obj);
	}

	@Override
	public boolean delete(String rowid) {
		return idao.delete(ProductExample.class, rowid);
	}

	@Override
	public ProductExample queryById(String rowid) {
		return idao.queryById(ProductExample.class, rowid);
	}
	@Override
	public List<ProductExample> queryBySql(String sql) {
		return idao.queryBySql(ProductExample.class,sql);
	}

	@Override
	public List<ProductExample> queryByHql(String hql, Object[] values) {
		// TODO Auto-generated method stub
		return idao.queryByHql(hql, values);
	}
}
